function login()
{
	var iid=document.getElementById("iid").value;
	var ppw=document.getElementById("ppw").value;
	var id=localStorage.getItem("id");
	var pw=localStorage.getItem("pw");
	if(iid==id)
	{
		if(ppw==pw)
		{
			alert("登录成功！");
			location.href="index.html";
		}
		else
		{
			alert("密码输入错误！")
		}
	}
	else
	{
		alert("账号输入错误！")
	}
}
function gotoreg()
{
	window.open("register.html");
}
